package net.display;

import net.kernel.KFichefrais;
import net.ko.displays.KObjectDisplay;
import net.ko.kobject.KObject;

public class FicheFrais extends KObjectDisplay {

	public String show(KObject ko,String memberName) {
		KFichefrais ff = (KFichefrais) ko;
		String ligneColor = "black;";
		if(ff.getMontantValide() > 100)
			ligneColor = "red;";
		if("visiteur".equals(memberName)){
			return "<span style='color:"+ ligneColor +"'>"+ff.getVisiteur() +"</span>";
		}
		return super.show(ko);
	}

	@Override
	public String showWithMask(KObject ko, String mask) {
		// TODO Auto-generated method stub
		return super.showWithMask(ko, mask);
	}

	@Override
	public String getCaption(Class<? extends KObject> clazz) {
		// TODO Auto-generated method stub
		return super.getCaption(clazz);
	}

	@Override
	public String getCaption(KObject ko, String memberName) {
		// TODO Auto-generated method stub
		return super.getCaption(ko, memberName);
	}

}
